package com.ebring.shareEducation.controller;

import com.ebring.shareEducation.bean.PayOrder;
import com.ebring.shareEducation.service.PayOrderService;
import com.ebring.shareEducation.utils.RspMsg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayOrderController {
   @Autowired
   private PayOrderService payOrderService;
    /**
     * 根据用户id 查询用户缴费明细
     *
     * @return
     */
    @PostMapping("/PayOrder/selectPayOrderByUserid")
    public RspMsg<PayOrder> selectPayOrderByUserid(String userId){
        return  payOrderService.selectPayOrderByUserid(userId);
    }

}
